Optimal. Leaf size=57 \[ -\frac {587 x+533}{18 \left (3 x^2+5 x+2\right )^2}+\frac {9918 x+8269}{18 \left (3 x^2+5 x+2\right )}-551 \log (x+1)+551 \log (3 x+2) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 57, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {816, 1660, 638, 616, 31} \[ -\frac {587 x+533}{18 \left (3 x^2+5 x+2\right )^2}+\frac {9918 x+8269}{18 \left (3 x^2+5 x+2\right )}-551 \log (x+1)+551 \log (3 x+2) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 616
Rule 638
Rule 816
Rule 1660
Rubi steps
\begin {align*} \int \frac {(5-x) (3+2 x)^2}{\left (2+5 x+3 x^2\right )^3} \, dx &=\int \frac {45+51 x+8 x^2-4 x^3}{\left (2+5 x+3 x^2\right )^3} \, dx\\ &=-\frac {533+587 x}{18 \left (2+5 x+3 x^2\right )^2}-\frac {1}{2} \int \frac {\frac {1673}{9}+\frac {8 x}{3}}{\left (2+5 x+3 x^2\right )^2} \, dx\\ &=-\frac {533+587 x}{18 \left (2+5 x+3 x^2\right )^2}+\frac {8269+9918 x}{18 \left (2+5 x+3 x^2\right )}+551 \int \frac {1}{2+5 x+3 x^2} \, dx\\ &=-\frac {533+587 x}{18 \left (2+5 x+3 x^2\right )^2}+\frac {8269+9918 x}{18 \left (2+5 x+3 x^2\right )}+1653 \int \frac {1}{2+3 x} \, dx-1653 \int \frac {1}{3+3 x} \, dx\\ &=-\frac {533+587 x}{18 \left (2+5 x+3 x^2\right )^2}+\frac {8269+9918 x}{18 \left (2+5 x+3 x^2\right )}-551 \log (1+x)+551 \log (2+3 x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 56, normalized size = 0.98 \[ -\frac {587 x+533}{18 \left (3 x^2+5 x+2\right )^2}+\frac {9918 x+8269}{54 x^2+90 x+36}+551 \log (-6 x-4)-551 \log (-2 (x+1)) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.56, size = 93, normalized size = 1.63 \[ \frac {9918 \, x^{3} + 24799 \, x^{2} + 3306 \, {\left (9 \, x^{4} + 30 \, x^{3} + 37 \, x^{2} + 20 \, x + 4\right )} \log \left (3 \, x + 2\right ) - 3306 \, {\left (9 \, x^{4} + 30 \, x^{3} + 37 \, x^{2} + 20 \, x + 4\right )} \log \left (x + 1\right ) + 20198 \, x + 5335}{6 \, {\left (9 \, x^{4} + 30 \, x^{3} + 37 \, x^{2} + 20 \, x + 4\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.16, size = 46, normalized size = 0.81 \[ \frac {9918 \, x^{3} + 24799 \, x^{2} + 20198 \, x + 5335}{6 \, {\left (3 \, x^{2} + 5 \, x + 2\right )}^{2}} + 551 \, \log \left ({\left | 3 \, x + 2 \right |}\right ) - 551 \, \log \left ({\left | x + 1 \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 48, normalized size = 0.84 \[ 551 \ln \left (3 x +2\right )-551 \ln \left (x +1\right )-\frac {425}{6 \left (3 x +2\right )^{2}}+\frac {320}{3 x +2}+\frac {3}{\left (x +1\right )^{2}}+\frac {77}{x +1} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.54, size = 54, normalized size = 0.95 \[ \frac {9918 \, x^{3} + 24799 \, x^{2} + 20198 \, x + 5335}{6 \, {\left (9 \, x^{4} + 30 \, x^{3} + 37 \, x^{2} + 20 \, x + 4\right )}} + 551 \, \log \left (3 \, x + 2\right ) - 551 \, \log \left (x + 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.84, size = 45, normalized size = 0.79 \[ \frac {\frac {551\,x^3}{3}+\frac {24799\,x^2}{54}+\frac {10099\,x}{27}+\frac {5335}{54}}{x^4+\frac {10\,x^3}{3}+\frac {37\,x^2}{9}+\frac {20\,x}{9}+\frac {4}{9}}-1102\,\mathrm {atanh}\left (6\,x+5\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.17, size = 51, normalized size = 0.89 \[ - \frac {- 9918 x^{3} - 24799 x^{2} - 20198 x - 5335}{54 x^{4} + 180 x^{3} + 222 x^{2} + 120 x + 24} + 551 \log {\left (x + \frac {2}{3} \right )} - 551 \log {\left (x + 1 \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________